const mysql = require('mysql')
let db = {
  dbMysql (sql, arr, callback) {
    let db = mysql.createConnection({
      host: 'localhost',
      port: 3306,
      user: 'root',
      password: '123456',
      database: 'disabled',
      timezone:'8:00',//设置时间
    })
    db.connect()
    db.query(sql, arr, callback)
    db.end()
  }
}
module.exports = db